package com.hb.core.pojo.project.evaluation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 评标委员会信息
 * </p>
 *
 * @author zhaojk
 * @since 2021-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_evaluation_committee")
@ApiModel(value = "EvaluationCommittee对象", description = "评标委员会信息")
public class EvaluationCommittee extends MPCommonEntity {

    @ApiModelProperty(value = "评委会名称")
    private String evaluationCommitteeName;

    @ApiModelProperty(value = "1: 随机抽取, 2: 直接指定, 3: 外部平台抽取, 4: 指定加抽取")
    private Integer evaluationWay;

    @ApiModelProperty(value = "1: 资格预审, 2: 其他")
    private Integer evaluationType;

    @ApiModelProperty(value = "评标专家人数")
    private Integer evaluationExpertNum;

    @ApiModelProperty(value = "招标人代表人数")
    private Integer tenderNum;

    @ApiModelProperty(value = "评委会总人数")
    private Integer evaluationCommitteeNum;

    @ApiModelProperty(value = "提交人")
    private String submitPerson;

    @ApiModelProperty(value = "提交人联系方式")
    private String submitPhone;

    @ApiModelProperty(value = "监抽人")
    private String miniteName;

    @ApiModelProperty(value = "评标开始时间")
    private LocalDateTime evaluationStartTime;

    @ApiModelProperty(value = "评标结束时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  evaluationEndTime;

    @ApiModelProperty(value = "评标地点")
    private String evaluationAddress;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "附件")
    private String attchment;

    @ApiModelProperty(value = "是否发短信通知")
    private Integer smsFlag;

    @ApiModelProperty(value = "短信内容")
    private String smsMessage;

    @ApiModelProperty(value = "状态：1已保存  2已提交")
    private Integer status;
}
